package com.acme.bankapp.domain.bank;

public abstract class AbstractAccount implements Account{
	private int balance;
	
	AbstractAccount(int initialValue){
		balance = initialValue;
	}
	public int getBalance(){
		return balance;
	}
	
	public void deposit(int sumOfDeposite){
		balance += sumOfDeposite;
	}
	
	public void setBalance(int newBalance){
		balance = newBalance;
	}
	
	public abstract void withdraw(int sum); 
	public abstract int maximumAmountToWithdraw();
}
